_DEF%
_DEF$

Syntax: _DEF% [ (#channel) ]
   and: _DEF$ [ (#channel) ]
Location: DEFS (DIY Toolkit - Vol A)

These functions create a table of all of the SuperBASIC PROCedures and FuNctions used within the program currently in memory.

The table appears in the specified CONsole channel, if any (default #2).

You can use the cursor keys to highlight the required PROCedure or FuNction name and then press <ENTER>.

Once selected, _DEF% returns the line number of the program line which contains the relevant DEFine PROCedure or DEFine FuNction.

If you press the <ESC> key an 'Incomplete' error is caused.  If no PROCedures or FuNctions are defined, then a 'Not Found' error is reported.

_DEF$ is similar, except it will return the selected name of the PROCedure or FuNction.

Example:
ED _DEF%

CROSS-REFERENCE:
_NAME$ is similar.
CODEVEC returns the machine code base address of a Machine Code Procedure or Function.
